c program to find factors of a number using while loop